package com.geor.gcv.core.mat;

import org.opencv.core.Mat;

public abstract class ImageOperator {
	private Mat mat;

	public ImageOperator(Mat mat) {
		this.mat = mat;
		for (int row = 0; row < mat.rows(); row++) {
			for (int col = 0; col < mat.cols(); col++) {
				operate(row, col, mat.get(row, col));
			}
		}
	}

	public abstract void operate(int row, int col, double[] pex);

	public Mat getMat() {
		return mat;
	}

}
